import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import axios from "./utils/axios";
import Vant from "vant";
import { Lazyload } from "vant";
import { Toast } from "vant";
import { Notify } from "vant";
import vConsole from "vconsole";
import "vant/lib/index.css";

// 全局的样式初始化
import "./style/reset.css";

Vue.config.productionTip = false;

// 将axios 挂到vue的原型上 在实例里都可以访问
Vue.prototype.$axios = axios;
Vue.use(Vant);
Vue.use(Toast);
Vue.use(Notify);
new vConsole();
Vue.use(Lazyload, {
  loading: "https://static2-qianqian.91q.com/client/img/31b35b2.jpg",
});

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
